ax_list = (5,9,15,5)
ay_list = (3,7,6,15)
bx_list = (4,12,1,15)
by_list = (9,10,1,5)
p_list = (1 / 5, 1 / 3, 3 / 4, 2 / 5)
for i in range(0,4):
    x = ax_list[i] * (1 - p_list[i]) + bx_list[i] * p_list[i]
    y = ay_list[i] * (1 - p_list[i]) + by_list[i] * p_list[i]
    print("(",x,",",y,")")